﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RedHouse.Data.Common;
using RedHouse.Data.Entities;

namespace RedHouse.Data.Service
{
    public interface ICategoryService
    {
        OperationResult Save(RedHouseCategory category, bool isNew);

        RedHouseCategory GetCategoryByID(Guid id);

        RedHouseCategory GetCategoryByName(string name);

        OperationResult Delete(RedHouseCategory category);

        OperationResult Delete(Guid id);

        List<RedHouseCategory> GetAll();

        List<RedHouseCategory> GetCategoryByGroup(int groupId);
    }
}
